package org.dromara.crawler.mongo.mongodomain;

import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import lombok.Data;

/**
 * @author Shup
 * @date 2025/6/19 10:20
 */
@Data
@CollectionName(value = "demo",database = "xinhua")
public class Demo {

    @ID     //使用ID注解，标注此字段为MongoDB的_id，或者继承BaseModelID类
    private String id;
    private String name;
    private Long age;
    private String email;

}
